package com.gebogebo.mobile.parking.manager;

import java.util.List;

import com.gebogebo.mobile.parking.model.ParkingSpot;
import com.gebogebo.mobile.parking.model.SearchArea;
import com.gebogebo.mobile.parking.dao.*;

public class ParkingSpotManager {
	
	ParkingSpotDAO pkSpotDao ;
	
	public ParkingSpotManager() {
		pkSpotDao = new ParkingSpotDAO();
		
	}
	
    public List<ParkingSpot> searchParkingSpots(Double latitude, Double longitude, Double radius, String unit) {
        SearchArea area = new SearchArea();
        area.setLatitude(latitude);
        area.setLongitude(longitude);
        area.setRadius(0.8D);
        List<ParkingSpot> pkSpots = pkSpotDao.searchForParkingSpot(area);
    	return pkSpots;
    
    }

    public boolean addParkingSpots(List<ParkingSpot> parkingSpots) {
    	return pkSpotDao.addParkingSpot(parkingSpots);

    }

    public boolean removeParkingSpots(List<ParkingSpot> parkingSpots) {
        return false;
    }
    
}